
using System;
using System.Collections;
using System.Data;
using System.Diagnostics;
using System.Drawing;
using System.Linq;
using System.Windows.Forms;
 // ERROR: Not supported in C#: OptionDeclaration
namespace NCS_CS
{
	internal partial class frmSetTp : System.Windows.Forms.Form
	{

		private void CancelButton_Renamed_Click(System.Object eventSender, System.EventArgs eventArgs)
		{
			this.Close();
		}

		private void frmSetTp_Load(System.Object eventSender, System.EventArgs eventArgs)
		{
			Combo1.Items.Add(("demo"));
			Combo1.Items.Add(("CP64"));
			Combo1.Items.Add(("BP61"));
			Combo1.SelectedIndex = ModMain.program1.tpid ;
		}

		private void OKButton_Click(System.Object eventSender, System.EventArgs eventArgs)
		{
			//save
			int id = 0;
			id = Combo1.SelectedIndex;
			//ModMain.gDb.saveTpModel( id);
            ModMain.program1.tpid = id;
            ModMain.getsession().Update(ModMain.program1);
            ModMain.getsession().Flush();
            ModMain.getFrmMain().settp(id);
			this.Close();
		}

	}
}
